package com.sky.mapper;

import java.util.List;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SetmealDishMapper {


    List<Long> getSetmealIdsByDishIds(List<Long> dishIds);

    void insertBatch(List<SetmealDish> setmealDishes);

    @Select("select * from setmeal_dish where setmeal_id=#{SetmealId}")
    List<SetmealDish> getSetmealIds(Long SetmealId);

    void deleteSetmealIds(List<Long> SetmealIds);

    @Select("select dish_id from setmeal_dish where setmeal_id=#{id}")
    List<Long> getDishIdBySetmealId(Long id);
}
